Hannibal before the gates
Refers to wasting time while the enemy is already here. Attributed to Cicero.